package com.tg.service.impl;

import com.github.pagehelper.PageHelper;
import com.tg.mapper.EbProductMapper;
import com.tg.model.EbProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductService implements com.tg.service.ProductService {
@Autowired
    private EbProductMapper ebProductMapper;
@Override
    public List<EbProduct> list(int page,int pageSize) {
    PageHelper.startPage(page, pageSize);
    List<EbProduct> ebProducts = ebProductMapper.selectByExample(null);
    return ebProducts;
}
}

